package com.example.backend.entity;

import lombok.Data;
import javax.persistence.Transient;

import java.sql.Timestamp;

@Data
public class Image {
    private Integer id = -1;
    private String pid = "-1";
    private String name = "";
    private String url = "";             // 存储OSS对象路径（如 "images/uuid-filename.jpg"）
    @Transient
    private String signedUrl = "";       // 添加临时访问URL字段（不存储到数据库）
    private Timestamp created_at = null;
}
